package com.zwz.mall.utils;

import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Administrator on 2019/5/16 0016.
 */

public class BarHeightUtils
{

    /**
     * 设置状态栏高度
     *
     * @param statusBarHeight
     */
    public static void setStatusBarHeight(View view, int statusBarHeight) {
        ViewGroup.LayoutParams layoutParams = view.getLayoutParams();
        layoutParams.height = statusBarHeight;
        view.setLayoutParams(layoutParams);
    }

}
